package com.hl.unittestlearn.di.module;

import com.hl.unittestlearn.IView;
import com.hl.unittestlearn.presenter.Presenter;
import com.hl.unittestlearn.di.scope.ActivityScope;
import com.hl.unittestlearn.http.APIServiceManager;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2016/12/28 0028.
 */
@Module
public class LoginModule extends BaseModule<IView>{

    public LoginModule(IView view) {
        super(view);
    }

    @ActivityScope
    @Provides
    public Presenter providesPresenter(IView view, APIServiceManager apiServiceManager)
    {
        return new Presenter(view, apiServiceManager);
    }
}
